package com.originskyseed.platform.user.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.core.base.BasePage;
import com.originskyseed.platform.user.model.Staff;
import com.originskyseed.platform.user.model.UserInfo;

/**
 * 员工信息Service接口类（OSI_STAFF）
 * 
 * @author Tangwanghui
 */
public interface IStaffService {

	/**
	 * 删除记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 * 
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(Staff record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(Staff record) throws Exception;

	/**
	 * 更新记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(Staff record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(Staff record) throws Exception;

	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public Staff selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<Staff> selectList(Staff record) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<Staff> selectListByPage(Map<String, Object> params, BasePage<Staff> page) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @param userInfo
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(Staff record, UserInfo userInfo) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @param userInfo
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(Staff record, UserInfo userInfo) throws Exception;

	/**
	 * 查询员工编号
	 * 
	 * @return
	 * @throws Exception
	 */
	public String selectStaffNum() throws Exception;

	/**
	 * 批量更改部门状态
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public int updateStatusByIds(Map<String, Object> params) throws Exception;
}